<SCRIPT type="text/javascript">
	var setting = {
		data: {
			simpleData: {
				enable: true
			}
		},
		callback: {
			//onCollapse: alert("up"),
			onExpand: function(){
				if (treeNiceScroll) {
					treeNiceScroll.resize();
				}
			}
		},
		view: {
			showLine: false
		}
	};
	var zNodes1 =[
		{ id:"0", pId:0, name:"系统日历", open:true, icon:"/assets/images/icon-file-closed.png", url:"/${orgi}/manage/calendar/index.html",target:"_self"}
		
	];
	$(document).ready(function(){
		var ztree = $.fn.zTree.init($(document.getElementById("zTree_adminLIst")), setting, zNodes1);
		ztree.selectNode(ztree.getNodeByParam("id", "${parentid!''}", null));
		<#if faild_users??>
		art.alert("<div style='height: 200px;width:500px; overflow: scroll;'>${successfulMsg!''}<br/><br/>未导入的有:{<#list faild_users as userStr> ${userStr} </#list>}</div>");
		</#if>
	});

	function submitSearchForm(action){
		$("#userform").attr("action","/${orgi}/manage/account/list/${parentid!''}.html");
		$("#beginNum").val($("#beginNumShow").val());
		$("#endNum").val($("#endNumShow").val());
		$("#username").val($("#show_username").val());
		$("#action").val(action);
		$("#userform").submit();
	} 

//提交用户复制表单
function submitCopyForm(){
	$("#userform").attr("action","/${orgi}/manage/account/usercopylist.html");
	$("#userform").submit();
}
//提交用户移动表单
function submitMoveForm(){
	$("#userform").attr("action","/${orgi}/manage/account/usermovelist.html");
	$("#userform").submit();
}
 
 
//提交用户删除表单
function submitDelForm(){
	if($("input[name='userid']:checked").length>0){
		art.confirm('您确定要删除这些用户吗？' 
		, function(){
			$("#userform").attr("action","/${orgi}/manage/account/userdellist.html");
			$("#userform").submit();
		
		} 
		, function(){})
		
	}else{
		alertMsg("请选择要删除的用户！");
	}
	
	
}
function checkSelectToMgr(id){
	if($("input[name='userid']:checked").length>0){
		$("#"+id).click();
	}else{
		alertMsg("请选择要操作的用户！");
	}
}

</SCRIPT>
<div class="rs_layout_top breadCrumbWrap">
	<div class="breadCrumbStart">您当前的位置是在：</div>
	<ul class="breadCrumb">
		<li class="bc_ithems"><a href="/${orgi}/manage/task/taskpassing.html">系统管理</a></li>
		<li class="bc_ithems"><a href="/${orgi}/manage/calendar/index.html">系统日历</a></li>
	</ul>
	
	<ul class="controlButtons" style="float: right">
		
		<li title="添加日历" data-width="500" href="/${orgi}/manage/calendar/calendaradd.html" id="newreport" data-toggle="ajax" class="cbtn-icon-32"></li>
		 
		<li >
			<a href="/${orgi}/manage/account/templateexport/calendartemplate.html" target="_blank" title="模板下载">
				<img src="/assets/images/excel.png" style="margin-top: 3px;  margin-left: 3px;">
			</a>
		</li>
		<li title="导入日历" class="cbtn-icon-45" href="/${orgi}/manage/calendar/calendarimport.html" data-width="600" id="dbsourceimport" data-toggle="ajax"></li>
	</ul>
</div>
<div class="rs_layout_left" resizable="true" style="width:230px;">
	<div class="lftTreeWrap">
		<div class="ztree" id="zTree_adminLIst"></div>
	</div>
</div>
<!--<div class="rs_layout_right" style="width:300px;"></div>-->
<div class="rs_layout_center">
	<div class="rs_layout">

		<div class="rs_layout_center">
		
		
			<div class="tableScrollWrap">
				<form id="userform" action="" method="post"  data-toggle="form"  data-callback="closeR3ArtDialog();">
				<input type="hidden" id="beginNum" name="beginNum" value="">
				<input type="hidden" id="endNum" name="endNum" value="">
				<input type="hidden" id="action" name="action" value="current">
				<table class="table_style_1">
								<thead>
									<tr>
										<th></th>
										<th><i class="verMidWrap">日期</i><i class="tbArrow"></i></th>
										<th><i class="verMidWrap">日期类型</i><i class="tbArrow"></i></th>
										<th class="minSize">操作</th>
									</tr>
								</thead>
								<tbody>
									
									<#if calendars??>
									<#list calendars as calendar>
									<tr>
										<td class="tdIcons"><input name="userid" value="" type="checkbox"></td>
										<td><a href="" target="report" class="report">
											<i class="icons_tablelist_user"></i>${calendar.dateflag!''}</a></td>
										<td><#if calendar.datetype==0>工作日<#elseif calendar.datetype==1>节日<#else>假日</#if></td>
										
										<td class="minSize">
											<i data-width="500" title="日历修改" href="/${orgi}/manage/calendar/${calendar.id!''}/calendaredit.html" id="calendaredit" data-toggle="ajax" class="tbControlIcon tci-7"></i>
											<a title="删除日历" href="javascript:void(0)" onclick="art.confirm('您确定要删除此日历吗？' , function(){location.href='/${orgi}/manage/calendar/${calendar.id!''}/calendardelo.html'} , function(){})"><i class="tbControlIcon tci-6"></i></a>
										</td>
									</tr> 
									</#list>
									</#if>
								</tbody>
							</table>
							</form>
			</div>

		</div>
		<div class="rs_layout_bottom toolBar_bottom" style="overflow: hidden">
			<ul class="toolbarBottom_IconWrap">
				<li onclick="submitDelForm();" class="tb-icons-4"></li>
			</ul>
		</div>
	</div>
</div>
